import React, { useState } from 'react';
import s from './style.module.css';
import fetch from 'API/fetch';
export default function cryjack() {
	const [show, setShow] = useState(false);
	React.useEffect(async () => {
		const resD = await fetch('/api/v2/constant/users/get', {
			method: 'GET',
		});
		if (resD.code === 200) {
			setShow(resD.results.switch);
		}
	}, []);
	return (
		show && (
			<div
				className={s.cyjk}
				onClick={() => {
					window.open('https://jk.yunaq.com/manage/task/list');
				}}
			>
				创宇监控
			</div>
		)
	);
}
